/* 外层组件的宽度可设置成100%或具体数值 */
.adContainer {
    width: 100%;
}
.hammer-official-account{
	position: fixed;
	left: 5rpx;
	right: 5rpx;
	bottom:var(--window-bottom);
	box-sizing: border-box;
	official-account{
		border-radius: 5rpx;
	}
}
/* ==================
       基础配置
 ==================== */
body {
    background: #fff;
    font-size: 24rpx;
    color: #444;
    font-family: Helvetica Neue, Helvetica, sans-serif;
}
view,
scroll-view,
swiper,
button,
input,
textarea,
label,
navigator,
image {
    box-sizing: border-box;
}

.hammer-header {
    padding: 80rpx 90rpx 40rpx 90rpx;
    box-sizing: border-box;
    .title {
        font-size: 34rpx;
        color: #333;
        font-weight: 500;
    }

    .sub-title {
        font-size: 24rpx;
        color: #7a7a7a;
        padding-top: 18rpx;
        line-height: 40rpx;
    }
}

/* ==================
     common - 边距
 ==================== */
.h-padding-left-right {
    padding: $hammer-left-right-padding;
}
.h-margin-top {
    margin-top: $hammer-margin-top
}
.h-margin-right {
	margin-right: $hammer-margin-top
}
/* ==================
        元素
 ==================== */
// icon居中显示
.location-icon > view {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 6px solid;
    border-radius: 12px;
}
// 关闭按钮
.hammer-close {
    border-radius: 200rpx;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 20rpx;
    height: 28rpx;
    line-height: 28rpx;
    color: #ffffff;
}
// 图片效果展示
.bg-img-eq,
.bg-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: relative;
    box-sizing: border-box;
}
// 图片元素占满元素
.bg-img-eq image,
.bg-img image {
    width: 100%;
    height: 100%;
    position: absolute;
}
/* ==================
   容器 - 边距 - 间隔
 ==================== */
.hammer-box {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: $hammer-left-right-padding;
}

.hammer-box .title {
    display: flex;
    min-height: 100rpx;
    align-items: center;/*垂直居中*/
    justify-content: center;/*水平居中*/
    text-align: justify;
    font-size: 20px;
}
.hammer-box .sub-title {
    display: flex;
    min-height: 80rpx;
    align-items: center;/*垂直居中*/
    justify-content: center;/*水平居中*/
    text-align: justify;
    line-height: 100%;
    margin-right: 20rpx;
    font-size: 18px;
}
.hammer-box input,
.hammer-box textarea {
    flex: 1;
}
.hammer-box textarea {
    padding: 20rpx;
    line-height: 40rpx;
}
.line-color:after,
.lines-color:after{
    border-color: $hammer-color;
}

.align-start {
    align-items: flex-start;
}

/* ==================
         背景色
 ==================== */
.bg-color {
    background-color: $hammer-color;
    color: #fff;
}
.bg-black {
    background-color: #000;
    color: #fff;
}

.bg-white {
    background-color: #fff;
    color: #888;
}

.bg-red {
    background-color: #e54d42;
    color: #ffffff;
}

.bg-orange {
    background-color: #f37b1d;
    color: #ffffff;
}

.bg-yellow {
    background-color: #fbbd08;
    color: #333333;
}

.bg-olive {
    background-color: #8dc63f;
    color: #ffffff;
}

.bg-green {
    background-color: #39b54a;
    color: #ffffff;
}

.bg-cyan {
    background-color: #1cbbb4;
    color: #ffffff;
}

.bg-blue {
    background-color: #0081ff;
    color: #ffffff;
}

.bg-purple {
    background-color: #6739b6;
    color: #ffffff;
}

.bg-mauve {
    background-color: #9c26b0;
    color: #ffffff;
}

.bg-pink {
    background-color: #e03997;
    color: #ffffff;
}

.bg-brown {
    background-color: #a5673f;
    color: #ffffff;
}

.bg-grey {
    background-color: #8799a3;
    color: #ffffff;
}

.bg-gray {
    background-color: #f0f0f0;
    color: #333333;
}

.bg-red.light {
    color: #e54d42;
    background-color: #fadbd9;
}

.bg-orange.light {
    color: #f37b1d;
    background-color: #fde6d2;
}

.bg-yellow.light {
    color: #fbbd08;
    background-color: #fef2ced2;
}

.bg-olive.light {
    color: #8dc63f;
    background-color: #e8f4d9;
}

.bg-green.light {
    color: #39b54a;
    background-color: #d7f0db;
}

.bg-cyan.light {
    color: #1cbbb4;
    background-color: #d2f1f0;
}

.bg-blue.light {
    color: #0081ff;
    background-color: #cce6ff;
}

.bg-purple.light {
    color: #6739b6;
    background-color: #e1d7f0;
}

.bg-mauve.light {
    color: #9c26b0;
    background-color: #ebd4ef;
}

.bg-pink.light {
    color: #e03997;
    background-color: #f9d7ea;
}

.bg-brown.light {
    color: #a5673f;
    background-color: #ede1d9;
}

.bg-grey.light {
    color: #8799a3;
    background-color: #e7ebed;
}
/* ==================
    basic-home导航
 ==================== */
.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.nav-li {
    padding: 30rpx;
    border-radius: 12rpx;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 10rpx;
    // animation: bounceInDown 1s 1;
}
.nav-li:first-child {
    // margin-top: 20rpx;
}
.nav-li:before,
.nav-li:after {
    content: "";
    position: absolute;
    top: 20rpx;
    height: 50%;
    left: 20rpx;
    width: 40%;
    box-shadow: -20rpx 20rpx 30rpx rgba(0, 0, 0, 0.1);
}

.nav-title {
    font-size: 32rpx;
    font-weight: 400;
    animation: bounceInDown 2s 1;
}

.nav-title::first-letter {
    font-size: 50rpx;
    margin-right: 4rpx;
}

.nav-name {
    font-size: 28rpx;
    text-transform: Capitalize;
    margin-top: 20rpx;
    position: relative;
    animation: slideInLeft 2s infinite;
}

.nav-name::before {
    content: "";
    position: absolute;
    display: block;
    width: 60rpx;
    height: 6rpx;
    background: #fff;
    bottom: 0;
    right: 0;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.nav-name::after {
    content: "";
    position: absolute;
    display: block;
    width: 50%;
    height: 1px;
    background: #fff;
    bottom: 0;
    right: 0;
    opacity: 0.5;
}

.nav-name::first-letter {
    font-weight: 800;
    font-size: 36rpx;
    margin-right: 1px;
}

.nav-li .nav-icon {
    position: absolute;
    right: 50rpx;
    top: 30rpx;
    font-size: 50rpx;
    width: 60rpx;
    height: 60rpx;
    text-align: center;
    line-height: 60rpx;
    animation: rollIn 2s infinite;
}
/* ==================
        搜索框
 ==================== */
.hammer-search {
    background-color: #eee;
    line-height: 64rpx;
    height: 64rpx;
    font-size: 24rpx;
    color: #888;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20rpx;
    uni-input: {
        flex: 1;
    }
}
/* ==================
        表单
 ==================== */
switch[checked] .wx-switch-input.wx-switch-input-checked,
checkbox[checked] .wx-checkbox-input,
radio[checked] .wx-radio-input,
switch.checked .uni-switch-input.uni-switch-input-checked,
checkbox.checked .uni-checkbox-input,
radio.checked .uni-radio-input {
    background-color: $hammer-color !important;
    border-color: $hammer-color !important;
    color: #ffffff !important;
}
// picker选择器 - 箭头指示
.hammer-form picker {
    flex: 1;
    padding-right: 40rpx;
    overflow: hidden;
    position: relative;
}

.hammer-form picker .picker {
    line-height: 100rpx;
    font-size: 28rpx;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-align: right;
}

.hammer-form picker::after {
    font-family: iconfont;
    display: block;
    content: "\e6a3";
    position: absolute;
    font-size: 34rpx;
    color: #8799a3;
    line-height: 100rpx;
    width: 60rpx;
    text-align: center;
    top: 0;
    bottom: 0;
    right: -20rpx;
    margin: auto;
}
/* ==================
        布局
 ==================== */
 // 百分比布局
.h-col-12 {
    width: 100%;
}

.h-col-11 {
    width: 91.66666667%;
}

.h-col-10 {
    width: 83.33333333%;
}

.h-col-9 {
    width: 75%;
}

.h-col-8 {
    width: 66.66666667%;
}

.h-col-7 {
    width: 58.33333333%;
}

.h-col-6 {
    width: 50%;
}

.h-col-5 {
    width: 41.66666667%;
}

.h-col-4 {
    width: 33.33333333%;
}

.h-col-3 {
    width: 25%;
}

.h-col-2 {
    width: 16.66666667%;
}

.h-col-1 {
    width: 8.33333333%;
}
/* flex-flow 属性是 flex-direction 和 flex-wrap 的简写。 */
/*
    flex-direction: row | row-reverse | column | column-reverse;
    flex-wrap: nowrap | wrap | wrap-reverse;
*/
/* flex-grow 决定拉伸 flex-shrink 决定收缩
    flex-grow: 1;
    flex-shrink: 1;
 */
/* flex start*/
.hammer-flex {
    display: flex;
}
.h-flex-1 {
    flex: 1;
}
.h-flex-2 {
    flex: 2;
}
.h-flex-3 {
    flex: 3;
}

.flex-direction {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.align-center {
    align-items: center;
}

.align-stretch {
    align-items: stretch;
}

.self-start {
    align-self: flex-start;
}

.self-center {
    align-self: flex-center;
}

.self-end {
    align-self: flex-end;
}

.self-stretch {
    align-self: stretch;
}

.align-stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}
.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.align-center {
    align-items: center;
}

.align-stretch {
    align-items: stretch;
}
/* flex end*/
/* grid布局 */
.grid {
    display: flex;
    flex-wrap: wrap;
    padding: 20rpx;
}
.flex-grow {
    flex-grow: 1;
}
.grid-item {
    margin-right: 20rpx;
    margin-bottom: 20rpx;
    border-radius: 6rpx;
    position: relative;
}
.grid-col-1>view {
    width: 100%;
}
.grid-col-2>view {
    // height: 0;
    width: calc((100% - 20rpx)/2);
    flex-flow: row nowrap;
}
.grid-col-2 .bg-img {
    padding-bottom: calc((100% - 20rpx)/2);
}
.grid-col-2 .bg-img-eq {
    padding-bottom: calc((100% - 20rpx)/2);
}
.grid-col-3>view {
    // height: 0;
    width: calc((100% - 40rpx)/3);
    flex-flow: row nowrap;
}
.grid-col-3 .bg-img {
    padding-bottom: calc((100% - 40rpx)/2);
}
.grid-col-3 .bg-img-eq {
    padding-bottom: calc((100% - 40rpx)/3);
}
.grid-col-4>view {
    // height: 0;
    width: calc((100% - 60rpx)/4);
    flex-flow: row nowrap;
}
.grid-col-4 .bg-img {
    padding-bottom: calc((100% - 60rpx)/2);
}
.grid-col-4 .bg-img-eq {
    padding-bottom: calc((100% - 60rpx)/4);
}
.grid-col-5>view {
    // height: 0;
    width: calc((100% - 80rpx)/5);
    flex-flow: row nowrap;
}
.grid-col-5 .bg-img {
    padding-bottom: calc((100% - 80rpx)/2);
}
.grid-col-5 .bg-img-eq {
    padding-bottom: calc((100% - 80rpx)/5);
}
.grid-col-2>view:nth-child(2n),
.grid-col-3>view:nth-child(3n),
.grid-col-4>view:nth-child(4n),
.grid-col-5>view:nth-child(5n) {
    margin-right: 0;
}
// flex布局最后一个元素的margin-right去掉
.grid-margin-right-none:last-child {
    margin-right: 0;
}
/* ==================
         Tags+Badge
 ==================== */
.hammer-tag {
    font-size: 24rpx;
    vertical-align: middle;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32rpx;
    font-family: Helvetica Neue, Helvetica, sans-serif;
    white-space: nowrap;
}
.hammer-tag[class*="line-"]::after {
    content: " ";
    width: 200%;
    height: 200%;
    position: absolute;
    top: 0;
    left: 0;
    border: 1rpx solid currentColor;
    transform: scale(0.5);
    transform-origin: 0 0;
    box-sizing: border-box;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}
.hammer-badge {
    border-radius: 200rpx;
    position: absolute;
    top: -10rpx;
    right: -10rpx;
    font-size: 20rpx;
    padding: 0rpx 10rpx;
    height: 28rpx;
    line-height: 28rpx;
}

// 线条颜色+字体颜色+边框颜色
.line-red::after,
.lines-red::after {
    border-color: #e54d42;
}

.line-orange::after,
.lines-orange::after {
    border-color: #f37b1d;
}

.line-yellow::after,
.lines-yellow::after {
    border-color: #fbbd08;
}

.line-olive::after,
.lines-olive::after {
    border-color: #8dc63f;
}

.line-green::after,
.lines-green::after {
    border-color: #39b54a;
}

.line-cyan::after,
.lines-cyan::after {
    border-color: #1cbbb4;
}

.line-blue::after,
.lines-blue::after {
    border-color: #0081ff;
}

.line-purple::after,
.lines-purple::after {
    border-color: #6739b6;
}

.line-mauve::after,
.lines-mauve::after {
    border-color: #9c26b0;
}

.line-pink::after,
.lines-pink::after {
    border-color: #e03997;
}

.line-brown::after,
.lines-brown::after {
    border-color: #a5673f;
}

.line-grey::after,
.lines-grey::after {
    border-color: #8799a3;
}

.line-gray::after,
.lines-gray::after {
    border-color: #aaaaaa;
}

.line-black::after,
.lines-black::after {
    border-color: #333333;
}

.line-white::after,
.lines-white::after {
    border-color: #ffffff;
}
.text-color,
.line-color,
.lines-color {
    color: $hammer-color;
}
.text-red,
.line-red,
.lines-red {
    color: #e54d42;
}

.text-orange,
.line-orange,
.lines-orange {
    color: #f37b1d;
}

.text-yellow,
.line-yellow,
.lines-yellow {
    color: #fbbd08;
}

.text-olive,
.line-olive,
.lines-olive {
    color: #8dc63f;
}

.text-green,
.line-green,
.lines-green {
    color: #39b54a;
}

.text-cyan,
.line-cyan,
.lines-cyan {
    color: #1cbbb4;
}

.text-blue,
.line-blue,
.lines-blue {
    color: #0081ff;
}

.text-purple,
.line-purple,
.lines-purple {
    color: #6739b6;
}

.text-mauve,
.line-mauve,
.lines-mauve {
    color: #9c26b0;
}

.text-pink,
.line-pink,
.lines-pink {
    color: #e03997;
}

.text-brown,
.line-brown,
.lines-brown {
    color: #a5673f;
}

.text-grey,
.line-grey,
.lines-grey {
    color: #8799a3;
}

.text-gray,
.line-gray,
.lines-gray {
    color: #aaaaaa;
}

.text-black,
.line-black,
.lines-black {
    color: #333333;
}

.text-white,
.line-white,
.lines-white {
    color: #ffffff;
}